let { Dubbo, setting } = require('dubbo2.js');
const service = require('./dubbo.service.lib');
const dubboSetting = setting
    .match('com.dang.dubbo.service.DubboProvider', {
        version: '1.0.0'
    });


const dubbo = new Dubbo({
    application: { name: "dubbo-consumer-node" },
    register: "192.168.196.131:2181",
    service,
    dubboSetting
})
/* 
const fn = async () => {
    let { res, err } = await dubbo.service.dubboProvider.sayHello('dang');
    console.log(res);
}
fn(); */

module.exports = dubbo;


